<?php 

//echo "<script>location.href='". Yii::app()->request->baseUrl."/alipay/'</script>";
?>

  <table width="705" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#FFFFFF">
          <tbody>
            <tr>
              <td valign="top" align="middle" width="16">　</td>
              <td width="630" valign="top"><table height="31" width="100%">
                  <tbody>
                    <tr>
                      <td height="25" align="right" valign="bottom"><p align="left"> </td>
                    </tr>
                  </tbody>
                </table>
                <span class="STYLE1">确认支付：
              
                </span> <br />
                                <table width="636" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999" class="order_table_1">
                  <tr>
                    <td bgcolor="#F3F3F3" align="left" colspan="5"><!--订单号：-->
                      购物流程: 查看购物车 > 登录注册 > 填写核对订单信息 > 生成提交订单</td>
                  </tr>
                  <tr>
                    <td width="12%" height="30" align="center" bgcolor="#CCCCCC"><strong>产品序号</strong></td>
                    <td width="33%" align="center" bgcolor="#CCCCCC"><strong>产品名称</strong></td>
                    <td width="19%" align="center" bgcolor="#CCCCCC"><strong>单价</strong></td>
                    <td width="14%" align="center" bgcolor="#CCCCCC"><strong>数量</strong></td>
                    <td width="22%" align="center" bgcolor="#CCCCCC"><strong>小计金额</strong></td>
                  </tr>
                                    <tr >
                    <td align="center" bgcolor="#FFFFFF"> 
                     <?php echo  $pro->SysProductsID;?>
                     </td>
                    <td align="center" bgcolor="#FFFFFF"> <?php echo  $pro->ProductName;?></td>
                    <td align="center" bgcolor="#FFFFFF">￥
                      <?php echo  $price = $pro->Price;?></td>
                    <td align="center" bgcolor="#FFFFFF"><?php echo $num;?></td>
                    <td align="center" bgcolor="#FFFFFF">￥<?php echo $totolprice;?>
                      </td>
                  </tr>
                    <tr>
                    <td colspan="5" align="right" bgcolor="#FFFFFF">购票总金额：&nbsp;<b>
                     <?php echo $totolprice;?>                      </b>&nbsp;</td>
                  </tr>
                </table>
                <div align="left">
                                    <div> <br />
				  
				                      <span style="font-family:'黑体'; font-size:14px; font-weight:bold; color:#FF0000;">请确认您的信息是否正确，如有错误请马上修改,确认支付不可更改！</span><a href="member_info.php"></a><br />
                    <span class="membersure"><br />
                    </span> </div>
					
					
                  <form action="index.php?r=site/saveDate" method="post"  onSubmit="return checkFrm(this)" >
				  				  
				  <input name="productName" id="productName" type="hidden" value="<?php echo $pro->ProductName ;?>" />
				   <input name="price" id="price" type="hidden" value="<?php echo $pro->Price ;?>" />
				    <input name="buyNum" id="buyNum" type="hidden" value="<?php echo $num ;?>" />
				    <input name="TotalPrice" id="TotalPrice" type="hidden" value="<?php echo $totolprice ;?>" />
				   
				  <input name="productID" id="productID" type="hidden" value="<?php echo $pro->SysProductsID ;?>" />
                    <div class="sub_order_p">
                      <p><b style="font-size:14px;">收货人信息</b></p>
                      <table class="sub_shopcar_table_2" width="698" border="0" cellspacing="1" cellpadding="0">
                        <tr valign="middle" height="30">
                          <td width="155">收货人姓名:</td>
                          <td width="187"><input type="text" name="PersonName" id="PersonName" value="aaabbb" /></td>
                          <td width="153">电子邮件地址:</td>
                          <td width="227"><input type="text" name="Email" id="Email" value="zheng19831983@163.com" /></td>
                        </tr>
                        <tr valign="middle" height="30">
                          <td width="155">详细地址:</td>
                          <td width="187"><input type="text" name="Address" id="Address" value="sdafdsafbbb" /></td>
                          <td width="153">邮政编码:</td>
                          <td width="227"><input type="text" name="PostCode" id="PostCode" value="111111" /></td>
                        </tr>
                        <tr valign="middle" height="30">
                          <td width="155">电话:</td>
                          <td width="187"><input type="text" name="Telephoto" id="Telephoto" value="sdafsdbbbb" /></td>
                          <td width="153">手机:</td>
                          <td width="227"><input type="text" name="Mobile" id="Mobile" value="sdafbbbbbb" /></td>
                        </tr>
                        <tr valign="middle" height="30">
                          <td width="155">最佳送货时间:</td>
                          <td width="187"><input type="text" name="SendTime" id="SendTime" value="" /></td>
                          <td width="153"></td>
                          <td width="227">&nbsp;
                          
                          
                            </td>
                        </tr>
                      </table>
                      <h6 class="sub_shopcar_title_2"><b style="font-size:14px;">支付方式
                        <input name="action" type="hidden" value="buy_pay">
                        </b></h6>
                      <table class="sub_shopcar_table_1" width="640" border="0" cellspacing="0" cellpadding="0">
                        <tr align="center" valign="middle" class="table_first_tr_1" height="31">
                          <td width="59" >&nbsp;</td>
                          <td width="141">名称</td>
                          <td class="table_last_td_1" width="527">描述</td>
                        </tr>
                                                <tr align="center" valign="middle" class="table_nather_tr_1" height="70">
                          <td align="left" class="table_first_td_1"><input type="radio" name="PayType" onClick="changePay('网银支付')" id="PayType_1" value="1" checked />
                          </td>
                          <td align="center">网银支付</td>
                          <td align="center"><p><img style="width: 166px; height: 37px" alt="" width="139" height="46" src="https://img.alipay.com/pics/sys/index/logo.gif" /><br />
支付宝（www.alipay.com）致力于为中国电子商务提供各种安全、方便、个性化的在线支付解决方案。支付宝从2003年10月在淘宝网推出，短短几年时间内迅速成为使用极其广泛的网上安全支付工具，深受用户喜爱。截止2006年6月，使用支付宝的用户已经超过2000万，日支付宝日交易总额超过4000万元人民币，日交易笔数超过25万笔。</p></td>
                        </tr>
                                                <tr align="center" valign="middle" class="table_nather_tr_1" height="70">
                          <td align="left" class="table_first_td_1"><input type="radio" name="PayType" onClick="changePay('银行转帐')" id="PayType_2" value="2"  />
                          </td>
                          <td align="center">银行转帐</td>
                          <td align="center"><p>
<table class="sub_shopcar_table_3" border="0" cellspacing="0" cellpadding="0" width="100%">
    <tbody>
        <tr>
            <td align="left"><img alt="" width="110" height="27" src="http://www.icbc.com.cn/icbc/html/main/images/new_logo2.gif" /></td>
            <td align="left"><img alt="" width="112" height="28" src="http://www.icbc.com.cn/icbc/html/main/images/new_logo2.gif" /></td>
        </tr>
        <tr>
            <td align="left">户名:李XXX</td>
            <td align="left">户名:李XXX</td>
        </tr>
        <tr>
            <td align="left">卡号: 9558823602006526657</td>
            <td align="left">卡号: 9558823602006526657</td>
        </tr>
        <tr>
            <td align="left">开户行: 广州荔港南湾支行</td>
            <td align="left">开户行: 广州荔港南湾支行</td>
        </tr>
    </tbody>
</table>
</p></td>
                        </tr>
                                                <tr align="center" valign="middle" class="table_nather_tr_1" height="70">
                          <td align="left" class="table_first_td_1"><input type="radio" name="PayType" onClick="changePay('银行电汇')" id="PayType_3" value="3"  />
                          </td>
                          <td align="center">银行电汇</td>
                          <td align="center"><p>
<table class="sub_shopcar_table_3" border="0" cellspacing="0" cellpadding="0" width="100%">
    <tbody>
        <tr>
            <td align="left">开户银行:</td>
            <td align="left">广州市商业银行南方支行</td>
        </tr>
        <tr>
            <td align="left">开户名称</td>
            <td align="left">广州服务有限公司</td>
        </tr>
        <tr>
            <td align="left">帐　　号:</td>
            <td align="left">223800269944</td>
        </tr>
    </tbody>
</table>
</p></td>
                        </tr>
                                                <tr align="center" valign="middle" class="table_nather_tr_1" height="70">
                          <td align="left" class="table_first_td_1"><input type="radio" name="PayType" onClick="changePay('邮政汇款')" id="PayType_7" value="7"  />
                          </td>
                          <td align="center">邮政汇款</td>
                          <td align="center"><p>
<table class="sub_shopcar_table_3" border="0" cellspacing="0" cellpadding="0" width="100%">
    <tbody>
        <tr>
            <td align="left">广州公司:</td>
            <td align="left">广州有限公司</td>
        </tr>
        <tr>
            <td align="left">联系电话:</td>
            <td align="left">020-34376022</td>
        </tr>
        <tr>
            <td align="left">通信地址:</td>
            <td align="left">广州市海珠区洪德路</td>
        </tr>
    </tbody>
</table>
</p></td>
                        </tr>
                                                <input name="PayTypeName" id="PayTypeName" type="hidden" value="网银支付" />
                      </table>
                      <h6 class="sub_shopcar_title_2"><b style="font-size:14px;">配送方式</b></h6>
                      <table class="sub_shopcar_table_1" width="640" border="0" cellspacing="0" cellpadding="0">
                        <tr align="center" valign="middle" class="table_first_tr_1" height="31">
                          <td width="57">&nbsp;</td>
                          <td width="118">名称</td>
                          <td class="table_last_td_1" width="376">描述</td>
                          <td class="table_last_td_1" width="147">费用</td>
                        </tr>
                                                <tr align="center" valign="middle" class="table_nather_tr_1" height="50">
                          <td align="left" class="table_first_td_1"><input type="radio" name="SendType" id="SendType_4" onClick="changeSend('国内快递','29.00')" value="4" checked />
                          </td>
                          <td align="center">国内快递</td>
                          <td align="center"></td>
                          <td align="center">￥
                            29.00</td>
                        </tr>
                                                <tr align="center" valign="middle" class="table_nather_tr_1" height="50">
                          <td align="left" class="table_first_td_1"><input type="radio" name="SendType" id="SendType_5" onClick="changeSend('邮寄包裹','15.00')" value="5"  />
                          </td>
                          <td align="center">邮寄包裹</td>
                          <td align="center"></td>
                          <td align="center">￥
                            15.00</td>
                        </tr>
                                                <tr align="center" valign="middle" class="table_nather_tr_1" height="50">
                          <td align="left" class="table_first_td_1"><input type="radio" name="SendType" id="SendType_9" onClick="changeSend('不需要','0.00')" value="9"  />
                          </td>
                          <td align="center">不需要</td>
                          <td align="center"></td>
                          <td align="center">￥
                            0.00</td>
                        </tr>
                                                <tr align="center" valign="middle" class="table_nather_tr_1" height="50">
                          <td align="left" class="table_first_td_1"><input type="radio" name="SendType" id="SendType_11" onClick="changeSend('中通物流','10.00')" value="11"  />
                          </td>
                          <td align="center">中通物流</td>
                          <td align="center"></td>
                          <td align="center">￥
                            10.00</td>
                        </tr>
                                                <input name="SendTypeName" id="SendTypeName" type="hidden" value="国内快递" />
                        <input name="SendTypeMoney" id="SendTypeMoney" type="hidden" value="29.00" />
                      </table>
                      <h6 class="sub_shopcar_title_2"><b style="font-size:14px;">其他信息</b></h6>
                      <table class="sub_shopcar_table_2" width="698" border="0" cellspacing="0" cellpadding="0">
                        <tr valign="middle" height="30">
                          <td>开发票
                            <input name="IsGetFaPiao" id="IsGetFaPiao" type="radio" value="1"  onclick="openinvoice();"/>
                            不用开发票
                            <input name="IsGetFaPiao" id="IsGetFaPiao" type="radio" value="1"  onclick="closeinvoice();"/>
                            <script language="javascript">
									<!--
									 function openinvoice(){
									  document.getElementById("invoice").style.display='';
									 }
									 function closeinvoice(){
									  document.getElementById("invoice").style.display='none';
									 }
									-->
								</script>
                          </td>
                          <td><table width="200" border="0" id="invoice" style="display:none">
                              <tr>
                                <td>发票类型:
                                  <input name="FaPiaoType" id="FaPiaoType" type="text" value="" />
                                  <br />
                                  &nbsp;&nbsp; <br />
                                  发票抬头:
                                  <input name="FaPiaoHead" id="FaPiaoHead" type="text" value="" />
                                  &nbsp;&nbsp;<br />
                                  <br />
                                  发票内容:
                                  <input name="FaPiaoContent" id="FaPiaoContent" type="text" value="" />
                                  &nbsp;&nbsp; </td>
                              </tr>
                            </table>
                            <br />
                            <br />
                            <br /></td>
                        </tr>
                        <tr valign="middle" height="30">
                          <td>订单附言</td>
                          <td><textarea cols="60" rows="4"  name="Message" id="Message"></textarea></td>
                        </tr>
                        
                        <tr>
                          <td>
                            
                          </td>
                        </tr>
                      </table>
                      
                      
                      <div align="center"><br />
                        <input class="order_form_5" value="提交支付" name="" type="submit" />
                      </div>
                      <p>&nbsp;</p>
                      <p>&nbsp;</p>
                    </div>
                    <div>
                    <div align="center"> <br />
                      <br />
                    </div>
                  </form>
				  				  
                </div></td>
            </tr>
          </tbody>
        </table>


